import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'

import { PostController, PostControllerTow } from './post.controller'
import { PostService } from './post.service'
import {
  PostEntity,
  UserEntity,
  PostCommentEntity,
  CategoryEntity,
  UploadEntity
} from '../../entitys'

@Module({
  imports: [
    TypeOrmModule.forFeature([
      PostEntity,
      UserEntity,
      PostCommentEntity,
      CategoryEntity,
      UploadEntity
    ])
  ],
  controllers: [PostController, PostControllerTow],
  providers: [PostService]
})
export class PostModule {}
